<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var num = 10;
        console.log(typeof num);
        var str = 'pink';
        console.log(typeof str);
        var flag = true;
        console.log(typeof flag);
        var vari = undefined;
        console.log(typeof vari);
        var timer = null;
        console.log(typeof timer);
        //prompt 取过来的值是字符型的
        var age = prompt('请输入您的年龄');
        console.log(age)
        console.log(typeof age)
    </script>
</head>
<body>

</body>
</html>